package com.sychip.fhc.app.wsn.common

import androidx.compose.ui.graphics.Color
import com.fhc.view.KeyLabel
import com.sychip.fhc.app.wsn.common.util.round

val ChannelList = (0x28..0x37).map { hexValue ->
    val frequency = 923.9 + ((hexValue - 0x28) * 0.2)
    val hexString = hexValue.toString(16).uppercase()
    val frequencyString = frequency.round(1)
    KeyLabel(hexValue, "0x$hexString ($frequencyString MHz)")
}

val NoUpdateFrColor = Color.Gray
val NoUpdateBgColor = Color.LightGray

val RouteJoin = " --> "
const val RssiInterval = 4000L
const val Second_1 = 1000L